#!/bin/python

import os
import sys

for instance in os.listdir("./base_instances/"):
  if ( instance[-3:] == "dat" ):
    limit = instance[7:10]
    if limit == "100":
      limit = "30";
      print "Solving instance: "+instance
      for seed in xrange(0,3):
        os.system("./run "+instance+" "+str(seed)+" "+limit+" >> outputs_data/data_structure/"+instance);
    elif limit == "300":
      limit = "90";
    else:
      limit = "180";

